import request from '@/utils/request'

export function listBill() {
  return request({
    url: '/bot/bill/list',
    method: 'get'
  })
}

export function addGroup(data) {
  return request.post('/bot/group/add', data)
}

export function listGroup() {
  return request({
    url: '/bot/group/list',
    method: 'get'
  })
}

export function deleteGroup(id) {
  return request.post('/bot/group/delete', { id })
}

export function addCard(data) {
  return request.post('/bot/card/add', data)
}

export function listCard() {
  return request({
    url: '/bot/card/list',
    method: 'get'
  })
}

export function unbindCard(id) {
  return request.post('/bot/card/unbind', { id })
}

export function disableCard(id) {
  return request.post('/bot/card/disable', { id })
}

export function getOnlineCard() {
  return request({
    url: '/bot/card/listOnline',
    method: 'get'
  })
}

